package com.zone.lib.download.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.io.Serializable;

/**
 * @Author: pkqlqx
 * @CreateDate: 2021/12/7 16:52
 * @Description:
 */
@Entity
public class Download  implements Serializable {

    private static final long serialVersionUID = -7938655317438587046L;

    @Id(autoincrement = true)
    private Long id;

    @Property
    private String code;

    @Property
    private String downloadUrl;

    @Property
    private String filePath;

    @Property
    private long size;

    @Property
    private String type;

    @Property
    private String appType;

    @Property
    private String version;

    @Property
    private long downloadLocation;

    @Property
    private long total;

    @Property
    private int downloadStatus;

    @Property
    private String createTime;

    @Generated(hash = 804867378)
    public Download(Long id, String code, String downloadUrl, String filePath,
            long size, String type, String appType, String version,
            long downloadLocation, long total, int downloadStatus,
            String createTime) {
        this.id = id;
        this.code = code;
        this.downloadUrl = downloadUrl;
        this.filePath = filePath;
        this.size = size;
        this.type = type;
        this.appType = appType;
        this.version = version;
        this.downloadLocation = downloadLocation;
        this.total = total;
        this.downloadStatus = downloadStatus;
        this.createTime = createTime;
    }

    @Generated(hash = 1462805409)
    public Download() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDownloadUrl() {
        return this.downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getFilePath() {
        return this.filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public long getSize() {
        return this.size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAppType() {
        return this.appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public String getVersion() {
        return this.version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public long getDownloadLocation() {
        return this.downloadLocation;
    }

    public void setDownloadLocation(long downloadLocation) {
        this.downloadLocation = downloadLocation;
    }

    public long getTotal() {
        return this.total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getDownloadStatus() {
        return this.downloadStatus;
    }

    public void setDownloadStatus(int downloadStatus) {
        this.downloadStatus = downloadStatus;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }


}
